package com.yuantu.judiciary.model.domain;

import com.yuantu.judiciary.model.BaseDO;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * 套餐使用记录表
 *
 * @author syw
 * @since 2023-06-12
 **/
@Data
@Entity
@DynamicUpdate
@Table(name = "vip_record")
public class OrgVipRecordDO extends BaseDO {

    /**
     * 组织id
     */
    @Comment("组织id")
    private Long organizationId;

    /**
     * 总查询次数
     */
    @Comment("总查询次数")
    private Integer totalSearchTimes;

    /**
     * 免费查询次数
     */
    @Comment("免费查询次数")
    private Integer freeSearchTimes;

    /**
     * 试用码绑定次数
     */
    @Comment("试用码绑定次数")
    private Integer trialSearchTimes;

    /**
     * 购买查询次数
     */
    @Comment("购买查询次数")
    private Integer buySearchTimes;

    /**
     * 购买支付宝小程序查询次数
     */
    @Comment("购买支付宝小程序查询次数")
    private Integer buyAlipayAppletSearchTimes;

    /**
     * 分配查询次数
     */
    @Comment("分配查询次数")
    private Integer distributeSearchTimes;

    /**
     * 账号数量
     */
    @Comment("账号数量")
    private Integer accountNum;

    /**
     * 过期时间
     */
    @Column(columnDefinition = "datetime")
    @Comment("过期时间")
    private Timestamp expiresTime;

    /**
     * 商冲查询次数
     */
    @Comment("商冲查询次数")
    private Integer personBusinessTimes;

}
